Skip to content

handle graceful shutdown of consumers#137

Merged
kristinmerbach merged 14 commits intotrunkfrom
graceful_shutdown_of_consumers_v2
Feb 25, 2026
Merged

handle graceful shutdown of consumers#137
kristinmerbach merged 14 commits intotrunkfrom
graceful_shutdown_of_consumers_v2

Conversation

@vkghub
Copy link
Copy Markdown
Contributor

@vkghub vkghub commented Feb 3, 2026

@vkghub vkghub added the enhancement New feature or request label Feb 3, 2026
@vkghub vkghub self-assigned this Feb 3, 2026
@vkghub vkghub requested a review from raghuramg February 4, 2026 03:50
@vkghub vkghub marked this pull request as ready for review February 4, 2026 13:01
Copy link
Copy Markdown
Contributor

@saipraveen18 saipraveen18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

Copy link
Copy Markdown
Contributor

@raghuramg raghuramg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implemented logic to add wait for message to drain before shutting down.

code changes looks good to me

@kristinmerbach kristinmerbach merged commit d108374 into trunk Feb 25, 2026
14 checks passed
vkghub added a commit to dchbx/event_source that referenced this pull request Feb 27, 2026
* handle graceful shutdown of Bunny (AMQP client)

* rearrange methods

* add more changes and specs

* remove unused

* add more specs

* add railtie spec

* fix typo

* spec fix

* fix path

* revert spec config

* revert spec

* test spec

* test one more change

* remove unused code
kristinmerbach pushed a commit to dchbx/event_source that referenced this pull request Mar 13, 2026
* Don't start event source until Rails is ready. (ideacrew#117)

* Don't start event source until rails is ready.

* Fix up when HTTP subscriber bindings are resolved.

* Properly name parameter.

* Fix http subscriber routing.

* Add more documentation.

* add support for amqp payload compress/decompress (ideacrew#119)

* add support for amqp payload compress/decompress

* publish compressed messages based on api configuration

* publish binary data directly to rabbitmq

* check if message bindings available

* verify encoding before passing payload to consumer handler

* refactor payload_codec, add specs

* add mime encode/decode operations

* add specs for mime encode/decode operations

* update bunny queue proxy and remove payload_codec

* remove zlib gem reference

* log file size before and after encoding

* update method names

* update errors for encode/decode exceptions

* add documentation for encode/decode operations

* add default mime type encode as json for amqp protocol (ideacrew#120)

* add default mime type encode json

* update documentation

* spec fixes

* refactor json string check and specs

* make sure decode errors don't block the queue (ideacrew#121)

* add default mime type encode json

* update documentation

* spec fixes

* refactor json string check and specs

* don't block messages from processing when encountered decode error
  - added subscriber.ack to acknowledge the message

* add spec fixes

* added more logger messages

---------

Signed-off-by: Raghu Ram <raghuramg83@gmail.com>

* add exception handling for zlib compressed data errors (ideacrew#122)

* handle graceful shutdown of consumers (ideacrew#137)

* handle graceful shutdown of Bunny (AMQP client)

* rearrange methods

* add more changes and specs

* remove unused

* add more specs

* add railtie spec

* fix typo

* spec fix

* fix path

* revert spec config

* revert spec

* test spec

* test one more change

* remove unused code

* spec fix

* fix one more spec

---------

Signed-off-by: Raghu Ram <raghuramg83@gmail.com>
Co-authored-by: Trey <lewis.r.evans@gmail.com>
Co-authored-by: Raghu Ram <raghuramg83@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants